home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Sample Code / Snippets / Networking / TalkTool / About Talktool next >
Encoding:
Text File  |  1990-05-18  |  2.3 KB  |  59 lines  |  [TEXT/MPS ]

  1.     
  2.     
  3.     Talktool 1.1    © Copyright 1989 Apple Computer, Inc.
  4.     
  5.     Programmed by Ricardo Batista, Apple Integrated Systems
  6.  
  7.     This is an MPW 3.0 tool to help you work with AppleTalk.
  8.     The source code of Talktool was written in C and assembler
  9.     
  10.     I use this tool when I am developing AppleTalk code and I need to experiment
  11.     at the same time the program is being coded.  The source code is provided.
  12.     
  13.     AppleTalk protocols used are:
  14.     
  15.         NBP
  16.         DDP
  17.         Echo
  18.         ATP
  19.         ZIP
  20.         
  21.         
  22.     Copy Talktool into the Tools folder of your MPW folder. To get help invoke
  23.     Talktool with no parameters in the MPW Shell.
  24.     
  25.     The functions provided by Talktool are:
  26.     
  27.         Register a name in the network, the user provides an object name and a type,
  28.         the tool provides a dummy socket listener so the socket does not get reused
  29.         by another process.
  30.         
  31.         Lookup names in the network, the user can optionally give as parameters an
  32.         object name, a type name, a zone or a combination of the three as search
  33.         criteria.  Initial buffer allocated is for 200 names.
  34.         
  35.         Write a DDP packet.  The user provides a destination network number,
  36.         destination node, socket, ddpType and optional data.  Before sending
  37.         a ddp packet a socket is opened and a socket listener installed in case
  38.         we receive a response, then the packet is sent out and we wait 30
  39.         seconds for a response.  If a response is received then we display the
  40.         data we got.
  41.         The socket and its listener are then disposed of.
  42.         
  43.         Write an ATP packet.  The user provides a destination network number,
  44.         destination node, socket, atpUserData and optional data.  The packet
  45.         is sent out as a transaction request and we wait 30 seconds for a response.
  46.         If a response is received then we display the data we got back.
  47.         
  48.         Write an Echo packet.  The user provides a destination network number,
  49.         destination node, and optional data.  To send an Echo packet we first
  50.         create a ddp socket and a socket listener to receive the echo reply.
  51.         The packet is sent out and we wait 30 seconds for the echo reply.
  52.         If a reply is received then we display the data we got.
  53.         The ddp socket and its listener are then disposed of.
  54.     
  55.         Set SelfSend flag.  This enables or disables the capability to send
  56.         and receive packets from our own machine.
  57.         
  58.         Zone names can be requested from the network, and the zone to which
  59.         this machine belongs is pointed out to the user.